import json
from temp_file import BASE_DIR

def load_parameterized_data():
    temp_list = list()
    with open(BASE_DIR + '\data\loginIfo.json',encoding="UTF-8") as f:
        json_data = json.load(f)

        for item in json_data:
            temp_tuple = list()
            temp_tuple.append((item["username"]))
            temp_tuple.append((item["password"]))
            temp_tuple.append((item["authCode"]))
            temp_tuple.append((item["status_code"]))
            temp_tuple.append((item["errorCode"]))
            temp_list.append(temp_tuple)

    return temp_list
